FROM java:8
ADD resource-sharing-platform.jar app.jar
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone \
EXPOSE 2022
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom"\
,"-Xms1000m","-Xmx1000m", "-Xmn512m", "-Xss512k"\
,"-XX:+PrintGCDetails","-XX:SurvivorRatio=8"\
,"-XX:+UnlockExperimentalVMOptions"\
,"-jar","app.jar"]
CMD ["--server.port=2022"]